<?php
namespace Common\Model;

class PrintSettingModel extends BaseModel
{
    protected $trueTableName = 'tb_print_setting';

    protected function _before_insert(&$data, $options) {
    
    }
    
    protected function _before_update(&$data, $options) {
    
    }
    
    public function getSetting($hotelId, $printType)
    {
        $option['hotelentity_id'] = $hotelId;
        $option['printtype'] = $printType;
        return $this->where($option)->find();
    }
}
